package yt.kpool.activity.setting.agent;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import butterknife.ButterKnife;
import butterknife.OnClick;
import yt.kpool.R;
import yt.kpool.activity.setting.agent.backwallet.BackWalletAc;
import yt.kpool.activity.setting.agent.myguest.MyGuestActivity;
import yt.kpool.activity.setting.agent.recommendcustomers.RecommendCustomersAc;
import yt.kpool.activity.setting.agent.returnpointquery.ReturnPointQueryActivity;
import yt.kpool.activity.setting.agent.rebatesettlement.RebateSettlementAc;
import yt.kpool.util.TitleControl;


/**
 * 代理商接口
 */
public class AgentAc extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ac_agentac);
        ButterKnife.bind(this);
        initTitle();
    }

    /**
     * 设置标题栏
     */
    private void initTitle() {
        TitleControl t = new TitleControl(this);
        t.setTitle("代理商入口");

    }

    @OnClick({R.id.ly_back_wallet,R.id.ly_my_client,R.id.ly_returnPointQuery,R.id.ly_BackSettlement,R.id.ly_ReferralClient})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.ly_back_wallet://返点钱包
                 startActivity(new Intent(AgentAc.this, BackWalletAc.class));
                break;
            case R.id.ly_my_client://我的客户
                startActivity(new Intent(AgentAc.this, MyGuestActivity.class));
                break;

            case R.id.ly_returnPointQuery://返点查询
                startActivity(new Intent(AgentAc.this, ReturnPointQueryActivity.class));
                break;
            case R.id.ly_BackSettlement://返点结算
                  startActivity(new Intent(AgentAc.this, RebateSettlementAc.class));
                break;
            case R.id.ly_ReferralClient://推荐客户
                  startActivity(new Intent(AgentAc.this, RecommendCustomersAc.class));
                break;
        }
    }
}
